package com.jingdianjichi.subject.infra.basic.service;

import com.jingdianjichi.subject.infra.basic.entity.SubjectLiked;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 题目点赞表(SubjectLiked)表服务接口
 *
 * @author makejava
 * @since 2025-02-26 14:39:52
 */
public interface SubjectLikedService {


    /**
     * 批量插入数据
     * @param subjectLikedList
     */
    void batchInsert(List<SubjectLiked> subjectLikedList);

    /**
     * 统计我们的喜欢的总数,用于分页来的
     */
    int countByCondition(SubjectLiked subjectLiked);

    /**
     * 分页查询
     */
    List<SubjectLiked> queryPage(SubjectLiked subjectLiked, int i, Integer pageSize);
}
